package cate.game.role.pvp.championrace.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBChampionRace;
import cate.game.pvp.championrace.data.ChampionRaceSpec;


@ClientMsg(title = "精英赛 组回合 请求")
public class ChampionRaceGroupRoundReq implements MsgInput {
    public long tag;
    public ChampionRaceSpec from;
    public ChampionRaceSpec to;

    @Override
    public MsgConfig conf() {
        return MsgIdBChampionRace.GROUP_ROUND_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        ChampionRaceGroupRoundResp r = game.pvp.championRace.getBizHandler().getGroupRound(this);
        if (r != null) {
            cc.sendNow(r);
        }
    }
}
